﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Runda.EShop.Common.Utility;
using Runda.EShop.Dal;

namespace Runda.EShop.Bll
{
    public partial class SysMessageBll
    {
        public DataTable GetUserMessage(List<SqlDbParameter> parms, string OrderBy, int PageSize, int PageIndex, out int RecordCount)
        {
            SysMessageDal dal = new SysMessageDal();
            return dal.GetUserMessage(parms, OrderBy, PageSize, PageIndex, out RecordCount);
        }

        public void ReadMessage(Guid ID)
        {
            SysMessageDal dal = new SysMessageDal();
            dal.ReadMessage(ID);
        }

        public void SendMessageToUser(Guid RoleID, string Title, string Content)
        {
            SysMessageDal dal = new SysMessageDal();
            dal.SendMessageToUser(RoleID, Title, Content);
        }

        public int Count(List<SqlDbParameter> parms)
        {
            SysMessageDal dal = new SysMessageDal();
            return dal.Count(parms);
        }
    }
}
